package com.ficus.road.maintain.controller.ops;

import com.ficus.road.maintain.service.ops.OpsJumpPointService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiawen yang
 * @date 2022/11/15 下午2:23
 */
@RestController
@RequiredArgsConstructor
public class OpsController {

    private final OpsJumpPointService opsJumpPointService;

    @PostMapping("/ops/jumpPoint/{range}/{distance}")
    public ResponseEntity<String> generateJumpPointOps(@PathVariable("range") Integer range, @PathVariable("distance") Double distance) {
        opsJumpPointService.jumpPointStatistic(range, distance);
        return ResponseEntity.ok("finish");
    }
}
